package com.ty.service;

import com.ty.entity.DeptmentQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ty.entity.Deptment;
import com.ty.dao.DeptmentDao;
import com.ty.service.DeptmentService;

import java.util.List;

/**
 * 部门表;(212_deptment)表服务实现类
 * @author : heimi
 * @date : 2025-6-11
 */
@Service
public class DeptmentService{
     
    @Autowired
    private DeptmentDao deptmentDao;
    
    public List<Deptment> select(DeptmentQuery query) {
        return deptmentDao.select(query);
    }
    
    public Integer insert(Deptment deptment) {
        return deptmentDao.insert(deptment);
    }
    
    public Integer update(Deptment deptment) {
        return deptmentDao.update(deptment);
    }
    
    public Integer delete(Integer id) {
        return deptmentDao.delete(id);
    }
    
}